/*******************************************************************************
 *
 * Copyright (c) 2008-2011 ayound@gmail.com, guwei8576431@gmail.com
 * This program and the accompanying materials
 * are made available under the terms of the GNU GENERAL PUBLIC LICENSE 
 * which accompanies this distribution, and is available at
 * http://dev.perl.org/licenses/gpl1.html
 * All rights reserved.
 * 
 * Created on 2009-10-20
 *******************************************************************************/

package org.cgtw.scriptprofile.server.servlet;

import java.util.Map;

public class ScriptProfileRequest {
	private String requestSource;
	
	private String method;
	
	private String postData;
	
	private Map<String, String> requestHeader;
	
	public ScriptProfileRequest(String source, String method, String postData, Map<String, String> header){
		this.requestSource = source;
		this.method = method;
		this.postData = postData;
		this.requestHeader = header;
	}

	/**
	 * @return Returns the method.
	 */
	public String getMethod() {
		return method;
	}

	/**
	 * @param method The method to set.
	 */
	public void setMethod(String method) {
		this.method = method;
	}

	/**
	 * @return Returns the postData.
	 */
	public String getPostData() {
		return postData;
	}

	/**
	 * @param postData The postData to set.
	 */
	public void setPostData(String postData) {
		this.postData = postData;
	}

	/**
	 * @return Returns the requestHeader.
	 */
	public Map<String, String> getRequestHeader() {
		return requestHeader;
	}

	/**
	 * @param requestHeader The requestHeader to set.
	 */
	public void setRequestHeader(Map<String, String> requestHeader) {
		this.requestHeader = requestHeader;
	}

	/**
	 * @return Returns the requestSource.
	 */
	public String getRequestSource() {
		return requestSource;
	}

	/**
	 * @param requestSource The requestSource to set.
	 */
	public void setRequestSource(String requestSource) {
		this.requestSource = requestSource;
	}

}
